﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SlamDunk.CMS.Model
{	
    /// <summary>
    /// LoginLog实体类（手写部分）
    /// </summary>
	public partial class LoginLog
	{	
		#region 01.方法——转换为视图模型对象
        /// <summary>
        /// 转换为视图模型对象方法
        /// </summary>
        /// <returns>视图模型对象</returns>
        public Model.LoginLogView ToViewModel()
        {
            return new Model.LoginLogView()
            {
                Id = this.Id,
                UserId = this.UserId,
                IPAddress = this.IPAddress,
                Status = this.Status,
                Browser = this.Browser,
                DelFlag = this.DelFlag,
                AddTime = this.AddTime,
            };
        }
        #endregion
	}
}
